//
//  QuestionDetailViewController.h
//  MingShi
//
//  Created by MJiao on 15/6/27.
//  Copyright (c) 2015年 MJiao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Question.h"
#import "UIPlaceHolderTextView.h"

@interface QuestionDetailViewController : UIViewController<UITableViewDelegate, UITableViewDataSource,UIAlertViewDelegate>
@property (weak, nonatomic) IBOutlet UIButton *btnFollow;
@property (weak, nonatomic) IBOutlet UILabel *lbQuestionNickName;
@property (weak, nonatomic) IBOutlet UILabel *lbQuestionSex;
@property (weak, nonatomic) IBOutlet UILabel *lbQuestionSign;
@property (weak, nonatomic) IBOutlet UILabel *lbContents;
@property (weak, nonatomic) IBOutlet UIImageView *ivQuestionImage;
@property (weak, nonatomic) IBOutlet UIScrollView *scollView;
@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UIImageView *ivAvatar;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UIView *postAnswerContentView;
@property (weak, nonatomic) IBOutlet UIImageView *ivAnswerImage;
@property (weak, nonatomic) IBOutlet UIPlaceHolderTextView *textViewAnswer;
@property (weak, nonatomic) IBOutlet UILabel *lbPostTime;
@property (weak, nonatomic) IBOutlet UIImageView *ivSexFlag;
@property (weak, nonatomic) IBOutlet UIImageView *lbStatusFlag;
- (IBAction)btnFollow:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *lbGradeName;
@property (weak, nonatomic) IBOutlet UILabel *lbSubjectName;
@property (weak, nonatomic) IBOutlet UILabel *lbReplyCount;
@property (weak, nonatomic) IBOutlet UILabel *lbStatus;

- (IBAction)btnPostAnswerAction:(id)sender;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *btnDeleteQuestion;
- (IBAction)btnDeleteQuestionAction:(id)sender;
@property (weak, nonatomic) IBOutlet UIButton *btnPostAnswer;
@property (weak, nonatomic) IBOutlet UIImageView *btnPostAnswerFlag;
@property(weak, nonatomic) IBOutlet NSLayoutConstraint *questionImageLayoutConstraint;

/**
 *   问题
 */
@property (nonatomic, strong) Question *question;

@property(nonatomic, strong) UITapGestureRecognizer *singleTap;
@property(nonatomic, strong) NSString *willViewImageUrl;
@property(nonatomic, strong) NSString *viewViewSmallImgeUrl;

@property(nonatomic) BOOL refreshFalg;
@end
